<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>调拨订单头部</title>
    <%= stylesheet_link_tag "/stylesheets/print.css" %>
  </head>
  <body>
    <table width="700" border="0">
      <tr>
        <td colspan="4">
          <div align="center" style="font-size:18px">
            <%=SysParam.find_by_company_id(session[:company_id]).company_name%>
          </div>
        </td>
      </tr>
      <tr>
        <td colspan="4">
          <div align="center" style="font-size:15px">
            <%if params[:sub_type] == '1'%>
              调拨配送单
            <%else%>
              调拨提货单
            <%end%>            
          </div>
        </td>
      </tr>
      <tr>
        <td width="97"><div align="right">
            开单日期：
          </div></td>
        <td width="235"><%=@transferOrder.created_at.strftime("%Y-%m-%d") %></td>
        <td width="101"><div align="right">
            单据编号：
          </div></td>
        <td width="249"><%=@transferOrder.order_number %></td>
      </tr>
      <tr>
        <td><div align="right">
            调出仓库：
          </div></td>
        <td><%=@transferOrder.fromWarehouse.name %> </td>
        <td><div align="right">
            调入仓库：
          </div></td>
        <td><%=@transferOrder.toWarehouse.name %>&nbsp;</td>
      </tr>
      <tr>
        <td><div align="right">
            说明：
          </div></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
  </body>
</html>